package com.crm.model.entity.customerManager;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CompetitorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CompetitorExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCompetitorIdIsNull() {
            addCriterion("competitor_id is null");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdIsNotNull() {
            addCriterion("competitor_id is not null");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdEqualTo(String value) {
            addCriterion("competitor_id =", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdNotEqualTo(String value) {
            addCriterion("competitor_id <>", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdGreaterThan(String value) {
            addCriterion("competitor_id >", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdGreaterThanOrEqualTo(String value) {
            addCriterion("competitor_id >=", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdLessThan(String value) {
            addCriterion("competitor_id <", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdLessThanOrEqualTo(String value) {
            addCriterion("competitor_id <=", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdLike(String value) {
            addCriterion("competitor_id like", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdNotLike(String value) {
            addCriterion("competitor_id not like", value, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdIn(List<String> values) {
            addCriterion("competitor_id in", values, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdNotIn(List<String> values) {
            addCriterion("competitor_id not in", values, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdBetween(String value1, String value2) {
            addCriterion("competitor_id between", value1, value2, "competitorId");
            return (Criteria) this;
        }

        public Criteria andCompetitorIdNotBetween(String value1, String value2) {
            addCriterion("competitor_id not between", value1, value2, "competitorId");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNull() {
            addCriterion("product_name is null");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNotNull() {
            addCriterion("product_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductNameEqualTo(String value) {
            addCriterion("product_name =", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotEqualTo(String value) {
            addCriterion("product_name <>", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThan(String value) {
            addCriterion("product_name >", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_name >=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThan(String value) {
            addCriterion("product_name <", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThanOrEqualTo(String value) {
            addCriterion("product_name <=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLike(String value) {
            addCriterion("product_name like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotLike(String value) {
            addCriterion("product_name not like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameIn(List<String> values) {
            addCriterion("product_name in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotIn(List<String> values) {
            addCriterion("product_name not in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameBetween(String value1, String value2) {
            addCriterion("product_name between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotBetween(String value1, String value2) {
            addCriterion("product_name not between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameIsNull() {
            addCriterion("competitor_name is null");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameIsNotNull() {
            addCriterion("competitor_name is not null");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameEqualTo(String value) {
            addCriterion("competitor_name =", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameNotEqualTo(String value) {
            addCriterion("competitor_name <>", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameGreaterThan(String value) {
            addCriterion("competitor_name >", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameGreaterThanOrEqualTo(String value) {
            addCriterion("competitor_name >=", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameLessThan(String value) {
            addCriterion("competitor_name <", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameLessThanOrEqualTo(String value) {
            addCriterion("competitor_name <=", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameLike(String value) {
            addCriterion("competitor_name like", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameNotLike(String value) {
            addCriterion("competitor_name not like", value, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameIn(List<String> values) {
            addCriterion("competitor_name in", values, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameNotIn(List<String> values) {
            addCriterion("competitor_name not in", values, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameBetween(String value1, String value2) {
            addCriterion("competitor_name between", value1, value2, "competitorName");
            return (Criteria) this;
        }

        public Criteria andCompetitorNameNotBetween(String value1, String value2) {
            addCriterion("competitor_name not between", value1, value2, "competitorName");
            return (Criteria) this;
        }

        public Criteria andProductPriceIsNull() {
            addCriterion("product_price is null");
            return (Criteria) this;
        }

        public Criteria andProductPriceIsNotNull() {
            addCriterion("product_price is not null");
            return (Criteria) this;
        }

        public Criteria andProductPriceEqualTo(BigDecimal value) {
            addCriterion("product_price =", value, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceNotEqualTo(BigDecimal value) {
            addCriterion("product_price <>", value, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceGreaterThan(BigDecimal value) {
            addCriterion("product_price >", value, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("product_price >=", value, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceLessThan(BigDecimal value) {
            addCriterion("product_price <", value, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("product_price <=", value, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceIn(List<BigDecimal> values) {
            addCriterion("product_price in", values, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceNotIn(List<BigDecimal> values) {
            addCriterion("product_price not in", values, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("product_price between", value1, value2, "productPrice");
            return (Criteria) this;
        }

        public Criteria andProductPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("product_price not between", value1, value2, "productPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceIsNull() {
            addCriterion("competitor_price is null");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceIsNotNull() {
            addCriterion("competitor_price is not null");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceEqualTo(BigDecimal value) {
            addCriterion("competitor_price =", value, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceNotEqualTo(BigDecimal value) {
            addCriterion("competitor_price <>", value, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceGreaterThan(BigDecimal value) {
            addCriterion("competitor_price >", value, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("competitor_price >=", value, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceLessThan(BigDecimal value) {
            addCriterion("competitor_price <", value, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("competitor_price <=", value, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceIn(List<BigDecimal> values) {
            addCriterion("competitor_price in", values, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceNotIn(List<BigDecimal> values) {
            addCriterion("competitor_price not in", values, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("competitor_price between", value1, value2, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("competitor_price not between", value1, value2, "competitorPrice");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitIsNull() {
            addCriterion("competitor_unit is null");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitIsNotNull() {
            addCriterion("competitor_unit is not null");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitEqualTo(String value) {
            addCriterion("competitor_unit =", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitNotEqualTo(String value) {
            addCriterion("competitor_unit <>", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitGreaterThan(String value) {
            addCriterion("competitor_unit >", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitGreaterThanOrEqualTo(String value) {
            addCriterion("competitor_unit >=", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitLessThan(String value) {
            addCriterion("competitor_unit <", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitLessThanOrEqualTo(String value) {
            addCriterion("competitor_unit <=", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitLike(String value) {
            addCriterion("competitor_unit like", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitNotLike(String value) {
            addCriterion("competitor_unit not like", value, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitIn(List<String> values) {
            addCriterion("competitor_unit in", values, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitNotIn(List<String> values) {
            addCriterion("competitor_unit not in", values, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitBetween(String value1, String value2) {
            addCriterion("competitor_unit between", value1, value2, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorUnitNotBetween(String value1, String value2) {
            addCriterion("competitor_unit not between", value1, value2, "competitorUnit");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeIsNull() {
            addCriterion("competitor_due_time is null");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeIsNotNull() {
            addCriterion("competitor_due_time is not null");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeEqualTo(Date value) {
            addCriterion("competitor_due_time =", value, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeNotEqualTo(Date value) {
            addCriterion("competitor_due_time <>", value, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeGreaterThan(Date value) {
            addCriterion("competitor_due_time >", value, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("competitor_due_time >=", value, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeLessThan(Date value) {
            addCriterion("competitor_due_time <", value, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeLessThanOrEqualTo(Date value) {
            addCriterion("competitor_due_time <=", value, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeIn(List<Date> values) {
            addCriterion("competitor_due_time in", values, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeNotIn(List<Date> values) {
            addCriterion("competitor_due_time not in", values, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeBetween(Date value1, Date value2) {
            addCriterion("competitor_due_time between", value1, value2, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCompetitorDueTimeNotBetween(Date value1, Date value2) {
            addCriterion("competitor_due_time not between", value1, value2, "competitorDueTime");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetIsNull() {
            addCriterion("current_budget is null");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetIsNotNull() {
            addCriterion("current_budget is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetEqualTo(String value) {
            addCriterion("current_budget =", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetNotEqualTo(String value) {
            addCriterion("current_budget <>", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetGreaterThan(String value) {
            addCriterion("current_budget >", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetGreaterThanOrEqualTo(String value) {
            addCriterion("current_budget >=", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetLessThan(String value) {
            addCriterion("current_budget <", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetLessThanOrEqualTo(String value) {
            addCriterion("current_budget <=", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetLike(String value) {
            addCriterion("current_budget like", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetNotLike(String value) {
            addCriterion("current_budget not like", value, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetIn(List<String> values) {
            addCriterion("current_budget in", values, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetNotIn(List<String> values) {
            addCriterion("current_budget not in", values, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetBetween(String value1, String value2) {
            addCriterion("current_budget between", value1, value2, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andCurrentBudgetNotBetween(String value1, String value2) {
            addCriterion("current_budget not between", value1, value2, "currentBudget");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorIsNull() {
            addCriterion("budget_director is null");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorIsNotNull() {
            addCriterion("budget_director is not null");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorEqualTo(String value) {
            addCriterion("budget_director =", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorNotEqualTo(String value) {
            addCriterion("budget_director <>", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorGreaterThan(String value) {
            addCriterion("budget_director >", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorGreaterThanOrEqualTo(String value) {
            addCriterion("budget_director >=", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorLessThan(String value) {
            addCriterion("budget_director <", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorLessThanOrEqualTo(String value) {
            addCriterion("budget_director <=", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorLike(String value) {
            addCriterion("budget_director like", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorNotLike(String value) {
            addCriterion("budget_director not like", value, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorIn(List<String> values) {
            addCriterion("budget_director in", values, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorNotIn(List<String> values) {
            addCriterion("budget_director not in", values, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorBetween(String value1, String value2) {
            addCriterion("budget_director between", value1, value2, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andBudgetDirectorNotBetween(String value1, String value2) {
            addCriterion("budget_director not between", value1, value2, "budgetDirector");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationIsNull() {
            addCriterion("director_information is null");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationIsNotNull() {
            addCriterion("director_information is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationEqualTo(String value) {
            addCriterion("director_information =", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationNotEqualTo(String value) {
            addCriterion("director_information <>", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationGreaterThan(String value) {
            addCriterion("director_information >", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationGreaterThanOrEqualTo(String value) {
            addCriterion("director_information >=", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationLessThan(String value) {
            addCriterion("director_information <", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationLessThanOrEqualTo(String value) {
            addCriterion("director_information <=", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationLike(String value) {
            addCriterion("director_information like", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationNotLike(String value) {
            addCriterion("director_information not like", value, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationIn(List<String> values) {
            addCriterion("director_information in", values, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationNotIn(List<String> values) {
            addCriterion("director_information not in", values, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationBetween(String value1, String value2) {
            addCriterion("director_information between", value1, value2, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andDirectorInformationNotBetween(String value1, String value2) {
            addCriterion("director_information not between", value1, value2, "directorInformation");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNull() {
            addCriterion("update_people_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNotNull() {
            addCriterion("update_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdEqualTo(String value) {
            addCriterion("update_people_id =", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotEqualTo(String value) {
            addCriterion("update_people_id <>", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThan(String value) {
            addCriterion("update_people_id >", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_people_id >=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThan(String value) {
            addCriterion("update_people_id <", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("update_people_id <=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLike(String value) {
            addCriterion("update_people_id like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotLike(String value) {
            addCriterion("update_people_id not like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIn(List<String> values) {
            addCriterion("update_people_id in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotIn(List<String> values) {
            addCriterion("update_people_id not in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdBetween(String value1, String value2) {
            addCriterion("update_people_id between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("update_people_id not between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(String value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(String value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(String value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(String value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(String value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLike(String value) {
            addCriterion("customer_id like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotLike(String value) {
            addCriterion("customer_id not like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<String> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<String> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(String value1, String value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(String value1, String value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdIsNull() {
            addCriterion("opportunity_id is null");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdIsNotNull() {
            addCriterion("opportunity_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdEqualTo(String value) {
            addCriterion("opportunity_id =", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotEqualTo(String value) {
            addCriterion("opportunity_id <>", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdGreaterThan(String value) {
            addCriterion("opportunity_id >", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdGreaterThanOrEqualTo(String value) {
            addCriterion("opportunity_id >=", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdLessThan(String value) {
            addCriterion("opportunity_id <", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdLessThanOrEqualTo(String value) {
            addCriterion("opportunity_id <=", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdLike(String value) {
            addCriterion("opportunity_id like", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotLike(String value) {
            addCriterion("opportunity_id not like", value, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdIn(List<String> values) {
            addCriterion("opportunity_id in", values, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotIn(List<String> values) {
            addCriterion("opportunity_id not in", values, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdBetween(String value1, String value2) {
            addCriterion("opportunity_id between", value1, value2, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andOpportunityIdNotBetween(String value1, String value2) {
            addCriterion("opportunity_id not between", value1, value2, "opportunityId");
            return (Criteria) this;
        }

        public Criteria andContactIdIsNull() {
            addCriterion("contact_id is null");
            return (Criteria) this;
        }

        public Criteria andContactIdIsNotNull() {
            addCriterion("contact_id is not null");
            return (Criteria) this;
        }

        public Criteria andContactIdEqualTo(String value) {
            addCriterion("contact_id =", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdNotEqualTo(String value) {
            addCriterion("contact_id <>", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdGreaterThan(String value) {
            addCriterion("contact_id >", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdGreaterThanOrEqualTo(String value) {
            addCriterion("contact_id >=", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdLessThan(String value) {
            addCriterion("contact_id <", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdLessThanOrEqualTo(String value) {
            addCriterion("contact_id <=", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdLike(String value) {
            addCriterion("contact_id like", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdNotLike(String value) {
            addCriterion("contact_id not like", value, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdIn(List<String> values) {
            addCriterion("contact_id in", values, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdNotIn(List<String> values) {
            addCriterion("contact_id not in", values, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdBetween(String value1, String value2) {
            addCriterion("contact_id between", value1, value2, "contactId");
            return (Criteria) this;
        }

        public Criteria andContactIdNotBetween(String value1, String value2) {
            addCriterion("contact_id not between", value1, value2, "contactId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}